#ifndef BJUTRFSWTECH_H
#define BJUTRFSWTECH_H

#include <QObject>

#include "_Interface/_global_datastruct.h"

#define InitStage 0
#define InsertStage 1
#define PreWaitStage 2
#define WeldingStage 3
#define FinisStage 4

class BasicRFSWTech{
private:
    ST_RobotDAQData mRobotDAQData;
    ST_FswTecDAQData mFswTecDAQData;
    ST_FswTecAdjData mFswTecAdjData;

    short nowRFSStage;
    double StaticTimeKey;
    double DynamicTimekey;
public:
    BasicRFSWTech();
    ~BasicRFSWTech();
public:
    short GetRobobtandFswParamaters(ST_RobotDAQData RobotDAQData, ST_FswTecDAQData FswTecDAQData);
    short SetFswAdjData(ST_FswTecAdjData &FswTecAdjData);
    short ReturnRSFSWStage(short &stage);
    short RFSWRobotProcessBasic();
private:
    short RFSWRobotProcessInitStage();
    short RFSWRobotProcessInsertStage();
    short RFSWRobotProcessPreWaitStage();
    short RFSWRobotProcessWeldingStage();
    short RFSWRobotProcessFinisStage();
};


#endif // BJUTRFSWTECH_H
